// Jialu.Meng
let getMercT0ConfigUrl = '/Home/Frontend/Edata/getMercT0Config'; //批量机具费率T0选项
let loginUrl = '/Home/Frontend/union/sign'; //登录
let forgetUpUrl = '/Home/Frontend/union/forgetUp'; //忘记密码
let sendsms_forgetUrl = '/Home/Frontend/union/sendsms_forget'; //忘记密码短信验证码
let tradeListUrl = '/Home/Frontend/etrade/tradeList'; //交易列表
let userlistUrl = '/Home/Frontend/euser/userlist'; //我的团队列表
let userTeamDetailUrl = '/Home/Frontend/euser/userTeamDetail'; //团队用户详细信息
let merchantlistUrl = '/Home/Frontend/Emerchant/getMerchantList'; //我的商户列表
let getMerchantDetailUrl = '/Home/Frontend/Emerchant/getMerchantDetail'; //我的商户详情
let machinelistUrl = '/Home/Frontend/Emachine/machinelist'; //我的机具列表
let recordListUrl = '/Home/Frontend/emachine/getTransferOrders'; //机具调拨记录
let operateTransferOrderUrl = '/Home/Frontend/Emachine/operateTransferOrder'; //机具调拨处理
let accountCertUrl = '/Home/Frontend/euser/accountCert'; //实名认证接口
let incomeUrl = '/Home/Frontend/ewallet/income'; //钱包明细接口
let myBankCardUrl = '/Home/Frontend/euser/myBankCard'; //银行卡明细
let listAreaUrl = '/Home/Frontend/euser/listArea'; //绑定储蓄卡获取城市
let listSupportBankUrl = '/Home/Frontend/euser/listSupportBank'; //获取银行列表
let autoBankNameUrl = '/Home/Frontend/euser/autoBankName'; //自动获取银行名称
let bindBankCardUrl = '/Home/Frontend/euser/bindBankCard'; //绑定储蓄卡
let listWithdrawUrl = '/Home/Frontend/ewithdraw/listWithdraw'; //提现记录
let spreadCodeUrl = '/Home/Frontend/euser/spreadCode'; //分享二维码
let getTradeIncomeUrl = '/Home/Frontend/Ewallet/getTradeIncome'; //收益明细-交易收益月汇总
let getTradeDayIncomeUrl = '/Home/Frontend/Ewallet/getTradeDayIncome'; // 收益明细-交易收益天汇总
let getActiveIncomeUrl = '/Home/Frontend/Ewallet/getActiveIncome'; //收益明细-激活返现
let getGroupIncomeUrl = '/Home/Frontend/Ewallet/getGroupIncome'; //收益明细-团队返现
let getIncome1Url = '/Home/Frontend/Ewallet/getIncome1'; //维度一收益汇总
let getIncome2Url = '/Home/Frontend/Ewallet/getIncome2'; //维度二收益汇总
let incomeListUrl = '/Home/Frontend/Ewallet/incomeList'; //交易收益列表
let groupIncomeListUrl = '/Home/Frontend/Ewallet/groupIncomeList'; //团队收益列表
let withdrawSettingsUrl = '/Home/Frontend/ewithdraw/withdrawSettings'; //提现设置
let withdrawUrl = '/Home/Frontend/Ewithdraw/withdraw'; //提现接口
let initUserInfoUrl = '/Home/Frontend/union/initUserInfo'; //初始化方法
let getProductListUrl = '/Home/Frontend/Ewallet/getProductList'; //获取首页收益明细-机具列表信息
let changeUpUrl = '/Home/Frontend/euser/changeUp'; //修改密码
let getTransferBackMachinesUrl = '/Home/Frontend/Emachine/getTransferBackMachines'; //查询回拨机具号
let addTransferBackOrderUrl = '/Home/Frontend/Emachine/addTransferBackOrder'; //机具回拨接口
let userTeamMonthDetailUrl = '/Home/Frontend/edata/userTeamMonthDetail'; //团队详情
let getCnapsCodeUrl = '/Home/Frontend/euser/getCnaps_code'; //获取银行开户支行
let getPolicyClassUrl = '/Home/Frontend/Emachine/getPolicyClass'; //获取政策费率产品类型
let getUserPolicyFeeUrl = '/Home/Frontend/Emachine/getUserPolicyFee'; //获取对应产品费率
let setUserPolicyFeeUrl = '/Home/Frontend/Emachine/setUserPolicyFee'; //设置对应产品费率
let myMerchantListUrl = '/Home/Frontend/Emerchant/myMerchantList'; //新商户列表

let productlistUrl = '/Home/Frontend/eproduct/productlist'; //查询用户产品列表
let getTransferUsersUrl = '/Home/Frontend/Emachine/getTransferUsers'; //机具挑拨功能 —- 获取挑拨代理列表接口
let getTransferProductsUrl = '/Home/Frontend/Emachine/getTransferProducts'; //机具挑拨功能 —- 获取挑拨代理对应的产品列表
let getTransferMachinesUrl = '/Home/Frontend/Emachine/getTransferMachines'; //据代理和产品的关系 查询机具
let addTransferOrderUrl = '/Home/Frontend/Emachine/addTransferOrder';
let userProductSettingUrl = '/Home/Frontend/eproduct/userProductSetting'; //设置用户产品费率
let messageListUrl = '/Home/Frontend/Message/messageList'; //系统消息
let readMessageUrl = '/Home/Frontend/Message/readMessage'; //系统消息已读未读
let helpCenterListUrl = '/Home/Frontend/HelpCenter/helpCenterList'; //帮助中心
let merchantListUrl = '/Home/Frontend/Emerchant/merchantList'; //费率设置-商户选择列表
let merchantFeeDetailUrl = '/Home/Frontend/Emerchant/merchantFeeDetail'; //费率设置-商户费率详情
let changeMerchantFeeUrl = '/Home/Frontend/Emerchant/changeMerchantFee'; //修改商户费率操作
let datasUnionUrl = '/Home/Frontend/Edata/union'; //数据汇总
let datasDataPieUrl = '/Home/Frontend/Edata/dataPie'; //饼图
let datasDataLineUrl = '/Home/Frontend/Edata/dataLine'; //折线图
let checkAppVersionUrl = '/Home/Frontend/union/checkAppVersion'; //检测应用版本信息
let stocklistUrl = '/Home/Frontend/eproduct/stocklist'; //库存管理
let stockToMachineUrl = '/Home/Frontend/Emachine/stockToMachine'; //库存管理详情
let getUserStatIndexUrl = '/Home/Frontend/Edata/getUserStat'; //获取首页统计数据
let getGroupStatIndexUrl = '/Home/Frontend/Edata/getGroupStat'; //获取团队统计数据
let getUserActiveStatUrl = '/Home/Frontend/Edata/userActiveStat'; //获取个人激活统计数据
let getGroupActiveStatUrl = '/Home/Frontend/Edata/groupActiveStat'; //获取团队激活统计数据
let getUserIncomeUrl = '/Home/Frontend/Edata/getUserIncome'; //获取个人收益统计数据
let teamStockListUrl = '/Home/Frontend/eproduct/teamStockList'; //获取团队库存
let teamStockToMachineUrl = '/Home/Frontend/Emachine/teamStockToMachine'; //自营库存列表
let getFeeCfgListUrl = '/Home/Frontend/Emachine/getFeeCfgList'; //获取费率项配置
let batchSetSnFeeUrl = '/Home/Frontend/Emachine/batchSetSnFee'; //批量设置机具费率
let productClassListUrl = '/Home/Frontend/Emachine/productClassList'; //获取产品分类列表
let getClassByMachineCodeUrl = '/Home/Frontend/Edata/getClassByMachineCode'; //根据机具号查询产品分类
let getClassByMachinesCodeUrl = '/Home/Frontend/Edata/getClassByMachinesCode'; //根据批量机具号查询产品分类
let getProductsByClassCodeUrl = '/Home/Frontend/Edata/getProductsByClassCode'; //获取产品分类
let stockDataUrl = '/Home/Frontend/eproduct/stockData'; //库存首页
let myAgentGroupUrl = '/Home/Frontend/eproduct/myAgentGroup'; //代理列表
let getStockInfoByAgtIdUrl = '/Home/Frontend/eproduct/getStockInfoByAgtId'; //库存详情
let monthTradeListUrl = '/Home/Frontend/edata/monthTradeList'; //月总交易额
let dayTradeListUrl = '/Home/Frontend/edata/dayTradeList'; //日总交易额
let userZcListUrl = '/Home/Frontend/euser/userZcList'; //政策设定获取代理商
let getMyMachinesUrl = '/Home/Frontend/Emachine/getMyMachines'; //我的终端列表
let getMachineDetailUrl = '/Home/Frontend/Emachine/getMachineDetail'; //我的终端详情
let tradeIncomeUrl = '/Home/Frontend/Ewallet/tradeIncome'; //交易统计
let productPolicyListUrl = '/Home/Frontend/eproduct/productPolicyList'; //我的团队详情-获取产品信息
let zdfxActiveIncomeUrl = '/Home/Frontend/Ewallet/activeIncome'; //收益-终端返现-激活返现
let zdfxGetPersonalActiveIncomesUrl = '/Home/Frontend/Ewallet/getPersonalActiveIncomes'; //终端返现-个人收益列表
let zdfxGetGroupActiveIncomesUrl = '/Home/Frontend/Ewallet/getGroupActiveIncomes'; //终端返现-团队收益列表
let getProductListBySnUrl = '/Home/Frontend/Emachine/getProductListBySn'; //根据SN号获取产品列表
let getOperateListUrl = '/Home/Frontend/Edata/getOperateList'; //机具政策设置记录列表
let getOperateUrl = '/Home/Frontend/Edata/getOperate'; //机具政策
let getOperateDetailUrl = '/Home/Frontend/Edata/getOperateDetail'; //机具政策设
let newGetPolicyClassUrl = '/Home/Frontend/EuserPolicy/getPolicyClass'; //获取政策分类
let newGetUserPolicyCfgUrl = '/Home/Frontend/EuserPolicy/getUserPolicyCfg'; //获取下级代理政策费率界值
let newSetUserPolicyFeeUrl = '/Home/Frontend/EuserPolicy/setUserPolicyFee'; //设置下级代理政策费率
let getUserPolicyUrl = '/Home/Frontend/Edata/getUserPolicy'; //团队详情-产品政策
let walletListUrl = '/Home/Frontend/Ewallet/walletList'; //获取钱包明细列表
let getActiveListUrl = '/Home/Frontend/euser/getActiveList'; //团队激活明细列表
let getStandardCountUrl = '/Home/Frontend/Ewallet/getStandardCount'; //达标返现汇总
let getPersonalStandardListUrl = '/Home/Frontend/Ewallet/getPersonalStandardList'; //达标返现个人
let getGroupStandardListUrl = '/Home/Frontend/Ewallet/getGroupStandardList'; //达标返现团队


let changeMerchantFeeLogUrl = '/Home/Frontend/Emerchant/changeMerchantFeeLog'; //商户费率修改记录


const install = (Vue, vm) => {
    // Jialu.Meng
    let getMercT0Config = (params = {}) => vm.$u.post(getMercT0ConfigUrl, params);
    let login = (params = {}) => vm.$u.post(loginUrl, params);
    let forgetUp = (params = {}) => vm.$u.post(forgetUpUrl, params);
    let sendsms_forget = (params = {}) => vm.$u.post(sendsms_forgetUrl, params);
    let tradeList = (params = {}) => vm.$u.post(tradeListUrl, params);
    let userlist = (params = {}) => vm.$u.post(userlistUrl, params);
    let userTeamDetail = (params = {}) => vm.$u.post(userTeamDetailUrl, params);
    let merchantlist = (params = {}) => vm.$u.post(merchantlistUrl, params);
    let getMerchantDetail = (params = {}) => vm.$u.post(getMerchantDetailUrl, params);
    let machinelist = (params = {}) => vm.$u.post(machinelistUrl, params);
    let recordList = (params = {}) => vm.$u.post(recordListUrl, params);
    let accountCert = (params = {}) => vm.$u.post(accountCertUrl, params);
    let income = (params = {}) => vm.$u.post(incomeUrl, params);
    let myBankCard = (params = {}) => vm.$u.post(myBankCardUrl, params);
    let listArea = (params = {}) => vm.$u.post(listAreaUrl, params);
    let listSupportBank = (params = {}) => vm.$u.post(listSupportBankUrl, params);
    let autoBankName = (params = {}) => vm.$u.post(autoBankNameUrl, params);
    let bindBankCard = (params = {}) => vm.$u.post(bindBankCardUrl, params);
    let listWithdraw = (params = {}) => vm.$u.post(listWithdrawUrl, params);
    let spreadCode = (params = {}) => vm.$u.post(spreadCodeUrl, params);
    let getTradeIncome = (params = {}) => vm.$u.post(getTradeIncomeUrl, params);
    let getTradeDayIncome = (params = {}) => vm.$u.post(getTradeDayIncomeUrl, params);
    let getActiveIncome = (params = {}) => vm.$u.post(getActiveIncomeUrl, params);
    let getGroupIncome = (params = {}) => vm.$u.post(getGroupIncomeUrl, params);
    let getIncome1 = (params = {}) => vm.$u.post(getIncome1Url, params);
    let getIncome2 = (params = {}) => vm.$u.post(getIncome2Url, params);
    let incomeList = (params = {}) => vm.$u.post(incomeListUrl, params);
    let groupIncomeList = (params = {}) => vm.$u.post(groupIncomeListUrl, params);
    let withdraw = (params = {}) => vm.$u.post(withdrawUrl, params);
    let withdrawSettings = (params = {}) => vm.$u.post(withdrawSettingsUrl, params);
    let initUserInfo = (params = {}) => vm.$u.post(initUserInfoUrl, params);
    let getProductList = (params = {}) => vm.$u.post(getProductListUrl, params);
    let getUserStat = (params = {}) => vm.$u.post(getUserStatUrl, params);
    let changeUp = (params = {}) => vm.$u.post(changeUpUrl, params);
    let operateTransferOrder = (params = {}) => vm.$u.post(operateTransferOrderUrl, params);
    let getTransferBackMachines = (params = {}) => vm.$u.post(getTransferBackMachinesUrl, params);
    let addTransferBackOrder = (params = {}) => vm.$u.post(addTransferBackOrderUrl, params);
    let userTeamMonthDetail = (params = {}) => vm.$u.post(userTeamMonthDetailUrl, params);
    let getCnapsCode = (params = {}) => vm.$u.post(getCnapsCodeUrl, params);
    let getPolicyClass = (params = {}) => vm.$u.post(getPolicyClassUrl, params);
    let getUserPolicyFee = (params = {}) => vm.$u.post(getUserPolicyFeeUrl, params);
    let setUserPolicyFee = (params = {}) => vm.$u.post(setUserPolicyFeeUrl, params);
    let myMerchantList = (params = {}) => vm.$u.post(myMerchantListUrl, params);

    let productlist = (params = {}) => vm.$u.post(productlistUrl, params);
    let getTransferUsers = (params = {}) => vm.$u.post(getTransferUsersUrl, params);
    let getTransferProducts = (params = {}) => vm.$u.post(getTransferProductsUrl, params);
    let getTransferMachines = (params = {}) => vm.$u.post(getTransferMachinesUrl, params);
    let addTransferOrder = (params = {}) => vm.$u.post(addTransferOrderUrl, params);
    let userProductSetting = (params = {}) => vm.$u.post(userProductSettingUrl, params);
    let messageList = (params = {}) => vm.$u.post(messageListUrl, params);
    let readMessage = (params = {}) => vm.$u.post(readMessageUrl, params);
    let helpCenterList = (params = {}) => vm.$u.post(helpCenterListUrl, params);
    let merchantFeeDetail = (params = {}) => vm.$u.post(merchantFeeDetailUrl, params);
    let merchantList = (params = {}) => vm.$u.post(merchantListUrl, params);
    let changeMerchantFee = (params = {}) => vm.$u.post(changeMerchantFeeUrl, params);
    let datasUnion = (params = {}) => vm.$u.post(datasUnionUrl, params);
    let datasDataPie = (params = {}) => vm.$u.post(datasDataPieUrl, params);
    let datasDataLine = (params = {}) => vm.$u.post(datasDataLineUrl, params);
    let checkAppVersion = (params = {}) => vm.$u.post(checkAppVersionUrl, params);
    let stocklist = (params = {}) => vm.$u.post(stocklistUrl, params);
    let stockToMachine = (params = {}) => vm.$u.post(stockToMachineUrl, params);
    let getUserStatIndex = (params = {}) => vm.$u.post(getUserStatIndexUrl, params);
    let getGroupStatIndex = (params = {}) => vm.$u.post(getGroupStatIndexUrl, params);
    let getUserActiveStat = (params = {}) => vm.$u.post(getUserActiveStatUrl, params);
    let getGroupActiveStat = (params = {}) => vm.$u.post(getGroupActiveStatUrl, params);
    let getUserIncome = (params = {}) => vm.$u.post(getUserIncomeUrl, params);
    let teamStockList = (params = {}) => vm.$u.post(teamStockListUrl, params);
    let teamStockToMachine = (params = {}) => vm.$u.post(teamStockToMachineUrl, params);
    let getFeeCfgList = (params = {}) => vm.$u.post(getFeeCfgListUrl, params);
    let batchSetSnFee = (params = {}) => vm.$u.post(batchSetSnFeeUrl, params);
    let productClassList = (params = {}) => vm.$u.post(productClassListUrl, params);
    let getClassByMachineCode = (params = {}) => vm.$u.post(getClassByMachineCodeUrl, params);
    let getClassByMachinesCode = (params = {}) => vm.$u.post(getClassByMachinesCodeUrl, params);
    let getProductsByClassCode = (params = {}) => vm.$u.post(getProductsByClassCodeUrl, params);
    let stockData = (params = {}) => vm.$u.post(stockDataUrl, params);
    let myAgentGroup = (params = {}) => vm.$u.post(myAgentGroupUrl, params);
    let getStockInfoByAgtId = (params = {}) => vm.$u.post(getStockInfoByAgtIdUrl, params);
    let monthTradeList = (params = {}) => vm.$u.post(monthTradeListUrl, params);
    let dayTradeList = (params = {}) => vm.$u.post(dayTradeListUrl, params);
    let userZcList = (params = {}) => vm.$u.post(userZcListUrl, params);
    let getMyMachines = (params = {}) => vm.$u.post(getMyMachinesUrl, params);
    let getMachineDetail = (params = {}) => vm.$u.post(getMachineDetailUrl, params);
    let tradeIncome = (params = {}) => vm.$u.post(tradeIncomeUrl, params);
    let productPolicyList = (params = {}) => vm.$u.post(productPolicyListUrl, params);
    let zdfxActiveIncome = (params = {}) => vm.$u.post(zdfxActiveIncomeUrl, params);
    let zdfxGetPersonalActiveIncomes = (params = {}) => vm.$u.post(zdfxGetPersonalActiveIncomesUrl, params);
    let zdfxGetGroupActiveIncomes = (params = {}) => vm.$u.post(zdfxGetGroupActiveIncomesUrl, params);
    let getProductListBySn = (params = {}) => vm.$u.post(getProductListBySnUrl, params);
    let getOperateList = (params = {}) => vm.$u.post(getOperateListUrl, params);
    let getOperate = (params = {}) => vm.$u.post(getOperateUrl, params);
    let getOperateDetail = (params = {}) => vm.$u.post(getOperateDetailUrl, params);
    let newGetPolicyClass = (params = {}) => vm.$u.post(newGetPolicyClassUrl, params);
    let newGetUserPolicyCfg = (params = {}) => vm.$u.post(newGetUserPolicyCfgUrl, params);
    let newSetUserPolicyFee = (params = {}) => vm.$u.post(newSetUserPolicyFeeUrl, params);
    let getUserPolicy = (params = {}) => vm.$u.post(getUserPolicyUrl, params);
    let walletList = (params = {}) => vm.$u.post(walletListUrl, params);
    let getActiveList = (params = {}) => vm.$u.post(getActiveListUrl, params);
    let getStandardCount = (params = {}) => vm.$u.post(getStandardCountUrl, params);
    let getPersonalStandardList = (params = {}) => vm.$u.post(getPersonalStandardListUrl, params);
    let getGroupStandardList = (params = {}) => vm.$u.post(getGroupStandardListUrl, params);
    let changeMerchantFeeLog = (params = {}) => vm.$u.post(changeMerchantFeeLogUrl, params);


    vm.$u.api = {
        // Jialu.Meng
        getMercT0Config,
        login,
        forgetUp,
        sendsms_forget,
        tradeList,
        userlist,
        merchantlist,
        getMerchantDetail,
        machinelist,
        userTeamDetail,
        recordList,
        accountCert,
        income,
        myBankCard,
        listArea,
        listSupportBank,
        autoBankName,
        bindBankCard,
        listWithdraw,
        spreadCode,
        getTradeIncome,
        getTradeDayIncome,
        getActiveIncome,
        getGroupIncome,
        getIncome1,
        getIncome2,
        incomeList,
        groupIncomeList,
        withdrawSettings,
        withdraw,
        initUserInfo,
        getProductList,
        getUserStat,
        changeUp,
        operateTransferOrder,
        getTransferBackMachines,
        addTransferBackOrder,
        userTeamMonthDetail,
        getCnapsCode,
        getPolicyClass,
        getUserPolicyFee,
        setUserPolicyFee,
        myMerchantList,

        productlist,
        getTransferUsers,
        getTransferProducts,
        getTransferMachines,
        addTransferOrder,
        userProductSetting,
        messageList,
        readMessage,
        helpCenterList,
        merchantFeeDetail,
        merchantList,
        changeMerchantFee,
        datasUnion,
        datasDataPie,
        datasDataLine,
        checkAppVersion,
        stocklist,
        stockToMachine,
        getUserStatIndex,
        getGroupStatIndex,
        getUserActiveStat,
        getGroupActiveStat,
        getUserIncome,
        teamStockList,
        teamStockToMachine,
        getFeeCfgList,
        batchSetSnFee,
        productClassList,
        getClassByMachineCode,
        getClassByMachinesCode,
        getProductsByClassCode,
        stockData,
        myAgentGroup,
        getStockInfoByAgtId,
        monthTradeList,
        dayTradeList,
        userZcList,
        getMyMachines,
        getMachineDetail,
        tradeIncome,
        productPolicyList,
        zdfxActiveIncome,
        zdfxGetPersonalActiveIncomes,
        zdfxGetGroupActiveIncomes,
        getProductListBySn,
        getOperateList,
        getOperate,
        getOperateDetail,
        newGetPolicyClass,
        newGetUserPolicyCfg,
        newSetUserPolicyFee,
        getUserPolicy,
        walletList,
        getActiveList,
        getStandardCount,
        getPersonalStandardList,
        getGroupStandardList,
        changeMerchantFeeLog
    };
}

export default {
    install
}
